//index.js
const app = getApp()
const { envList } = require('../../envList.js')

Page({
  data: {
    activeTabIndex: 0,
    activeSwiperIndex:0
  },
  changeHot(){
    this.setData({
     activeTabIndex:0,
     activeSwiperIndex:0
    })
  },
  changeRun(){
    this.setData({
      activeTabIndex:1,
      activeSwiperIndex:1
      
    })
  

  },
 
    onShow(){
    
  },
  onLoad:function(){
    this.loadDate();
  },
  loadMore(){
    wx.showLoading({
      title: '加载更多',
    })
  },
  loadDate(){
    if(this.data.activeTabIndex==0){
      this.loadHot();
    }
    else{
      this.loadChase();
    }
  },
  loadHot(){

  },
  loadChase(){

  }
})
